﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using DTO;

namespace BUS
{
    public class ChiTietPhieuMua_BUS
    {
        private static ChiTietPhieuMua_BUS m_instance = null;

        public static ChiTietPhieuMua_BUS Instance
        {
            get
            {
                if (m_instance == null)
                {
                    m_instance = new ChiTietPhieuMua_BUS();
                }
                return m_instance;
            }
        }

        public bool ThemChiTietPhieuMuaHang(ChiTietPhieuMua_DTO phieu)
        {
            return ChiTietPhieuMua_DAO.Instance.ThemChiTietPhieuMua(phieu.MaSanPham, phieu.MaPhieuMua, phieu.SoLuong, phieu.DonGia);
        }
    }
}
